<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑</title>
<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/bsc/static/css/personal.css" media="all">
	<script type="text/javascript" src="/bsc/static/js/jquery-1.7.1.js"></script>
	<style type="text/css">
		.q1{
			font-size:0.4cm;
			text-align: center;
		}
	</style>
	
	<script type="text/javascript">
	$(function(){
		$("#sex").val('${users.sex}');
		$("#shop_id").val('${shopId}');
		$("#wechat_status").val('${users.wechat_status}');
		$("#enroll_mode").val('${users.enroll_mode}');
		$("#remark").val('${users.remark}');
	});
	
	</script>
</head>	
<body>
<form action="/bsc/users/save" method="post" enctype="multipart/form-data">
<div class="container">
			<table id="tb" class="table table-bordered" align="center">
				<tr>
					<td colspan="2" align="center"><font size="5px">顾客编辑</font></td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">头像:</td>
					<td>
					<input type="hidden" name="custom_user_id" value="${users.custom_user_id }">
					<input type="hidden" name="photoname" value="${users.photo }">
					<input type="file" class="form-control" name="file" placeholder="请选择头像" id="photo">
					<img alt="" src="/bsc${users.photo }" width="150" height="80"><br>
					</td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">手机号:</td>
					<td><input type="text" class="form-control" name="mobile" placeholder="请输入手机号" id="mobile"  value="${users.mobile }"></td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">姓名:</td>
					<td><input type="text" class="form-control" name="username" placeholder="请输入姓名" id="username" value="${users.username }"></td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">昵称:</td>
					<td><input type="text" class="form-control" name="nikename" placeholder="请输入昵称" id="nikename" value="${users.nikename }"></td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">性别:</td>
					<td>
					<select class="form-control" name="sex" id="sex">
					<option value="-1">请选择</option>
					<option value="1">男</option>
					<option value="2">女</option>
					<option value="3">保密</option>
					</select>
					</td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">店铺名称:</td>
					<td>
					<select class="form-control" name="bis_Shop.shop_id" id="shop_id">
					<option value="-1">请选择</option>
					<c:forEach items="${list }" var="shop">
					<option value="${shop.shop_id }">${shop.shop_name }</option>
					</c:forEach>
					</select>
					</td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">微信状态:</td>
					<td>
					<select class="form-control" name="wechat_status" id="wechat_status">
					<option value="-1">请选择</option>
					<option value="1">未订阅</option>
					<option value="2">已订阅</option>
					<option value="3">已退订</option>
					</select>
					</td>
				</tr>
				<tr>
					<td class="q1"  style="padding-top: 0.3cm">QQ:</td>
					<td><input type="text" class="form-control" name="qq" placeholder="请输入qq号码" id="qq" value="${users.qq }"></td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">邮箱:</td>
					<td><input type="text" class="form-control" name="email" placeholder="请输入邮箱" id="email" value="${users.email }"></td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">生日:</td>
					<td><input type="date" class="form-control" name="born_date" id="born_date" value="<fmt:formatDate value='${users.born_date }' pattern='yyyy-MM-dd'/>"></td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">注册方式:</td>
					<td>
					<select class="form-control" name="enroll_mode" id="enroll_mode">
					<option value="-1">请选择</option>
					<option value="3">后台</option>
					</select>
					</td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">通信地址:</td>
					<td><input type="text" class="form-control" name="address" placeholder="请输入通信地址" id="address" value="${users.enroll_mode }"></td>
				</tr>
				<tr>
					<td class="q1" style="padding-top: 0.3cm">备注:</td>
					<td><textarea rows="10" cols="100" name="remark" id="remark"></textarea></td>
				</tr>
				<tr>
				<td></td>
				<td><button type="submit" class="btn btn-success glyphicon glyphicon-plus" >提交</button></td>
				</tr>
			</table>
	   </div>
	   
</form>
</body>
</html>